package com.cysyz.sql.column.html.mapper.validate.impl;

import cn.org.rapid_framework.generator.provider.db.table.model.Column;
import com.cysyz.sql.column.html.mapper.validate.ColumnHtmlValidateInfoMapper;

import java.util.List;

/**
 * Created by admin oabstract-24.
 */
public abstract class BaseColumnHtmlValidateInfoMapper implements ColumnHtmlValidateInfoMapper<Column> {
    @Override
    public void execute(List args) {
        this.setValidateInfos((Column) args.get(0));
    }

    protected abstract String getValidateString();

    public void setValidateInfos(Column column) {
        column.addValidateInfo(getValidateString());
    }
}
